<div id="content">
    {switch $type}
    {case 1}
    <div id="title">学生</div>
    <div id="user"><a  id="chocse" href="{:url('find')}?type=1">学生</a><a href="{:url('find')}?type=2">教工</a><a href="{:url('find')}?type=3" >校外</a></div>
    <div id="student">

            <table>
                <input type="hidden" name="type" value="1">
                <tr><th>学号：</th><td><input type="number" name="stuid"  required onchange="getstuid(this)"></td></tr>
                <tr><th>邮箱：</th><td><input type="email" name="email" required></td></tr>
                <tr><th>手机号码：</th><td><input type="number" name="phone" required onchange="getphone(this)"></td></tr>
                <tr><th>验证码：</th><td><input type="text" name="captcha"></td></tr>
                <tr><td></td><td><img src="{:captcha_src()}" id="img" alt="captcha" /></td></tr>
                <tr><td></td><td><input  type="submit" value="验　证" onclick="find()"></td></tr>
            </table>

    </div>
    {/case}

    {case 2}
    <div id="title">教工</div>
    <div id="user"><a  href="{:url('find')}?type=1">学生</a><a href="{:url('find')}?type=2"  id="chocse">教工</a><a href="{:url('find')}?type=3" >校外</a></div>
    <div id="student">

            <table>
                <input type="hidden" name="type" value="2">
                <tr><th>姓名：</th><td><input type="text" name="name" required onchange="getname(this)"></td></tr>
                <tr><th>邮箱：</th><td><input type="email" name="email" required></td></tr>
                <tr><th>工号：</th><td><input type="number" name="phone" required ></td></tr>
                <tr><th>验证码：</th><td><input type="text" name="captcha"></td></tr>
                <tr><td></td><td><img src="{:captcha_src()}" id="img"  alt="captcha" /></td></tr>
                <tr><td></td><td><input  type="submit" value="验　证" onclick="find()"></td></tr>
            </table>

    </div>
    {/case}

    {case 3}
    <div id="title">校外</div>
    <div id="user"><a  href="{:url('find')}?type=1">学生</a><a href="{:url('find')}?type=2" >教工</a><a href="{:url('find')}?type=3"  id="chocse">校外</a></div>
    <div id="student">

            <table>
                <input type="hidden" name="type" value="3">
                <tr><th>姓名：</th><td><input type="text" name="name" required onchange="getname(this)"></td></tr>
                <tr><th>邮箱：</th><td><input type="email" name="email" required></td></tr>
                <tr><th>手机号码：</th><td><input type="number" name="phone" required onchange="getphone(this)"></td></tr>
                <tr><th>验证码：</th><td><input type="text" name="captcha"></td></tr>
                <tr><td></td><td><img src="{:captcha_src()}"  id="img"  alt="captcha" /></td></tr>
                <tr><td></td><td><input  type="submit" value="验　证" onclick="find()"></td></tr>
            </table>

    </div>
    {/case}
    {/switch}


</div>

